import request from "@/utils/http";

export const taskNode = (params) => {
    return request({
        url: '/api/blade-workflow/design/model/taskNode?modelKey=office-car',
        params,
    })
}

/**
 * 提交申请
 */

export const add = (data) => {
    return request({
        url: '/api/blade-basic/app/carApprove/submit',
        method: 'post',
        data,
    })
}
/**
 * 申请部门
 */

export const deptList = (params) => {
    return request({
        url: '/api/blade-system/dept/list?size=-1',
        params,
    })
}
/**
 * 用车、用章凭证
 */

export const officeDocument = (id) => {
    return request({
        url: `/api/blade-basic/officeDocument/list?moduleId_equal=${id}`,
    })
}

export const save = (data) => {
    return request({
        url: `/api/blade-basic/app/carEvaluation/save`,
        method: 'post',
        data,
    })
}

export const carInfo = (id) => {
    return request({
        url: `/api/blade-basic/app/carInfo/dispatchCarRecord?applyCarId=${id}`,
    })
}
